package system

import (
	"context"
	"gf-assistant/internal/common/factory"
	"gf-assistant/internal/system/parameter"
)

// Index 首页权限菜单
var Index = IndexController{
	service: "system.IndexService",
}

type IndexController struct {
	service string
}

func (c *IndexController) GetMenu(ctx context.Context, req *parameter.GetMenuReq) (res *parameter.GetMenuRes, err error) {
	return factory.Get(c.service).(*IndexService).GetMenu(ctx, req), nil
}
